package com.coolgor.coldot.dto.auth;

import java.util.List;


import com.coolgor.coldot.entity.auth.OperationTrace;
import com.coolgor.coldot.enums.auth.OperationTraceStateEnum;

public class OperationTraceExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private OperationTrace operationTrace;

	// 获取的结果列表(查询列表的时候使用)
	private List<OperationTrace> operationTraceList;

	public OperationTraceExecution() {	}

	// 操作失败的时候使用的构造器
	public OperationTraceExecution(OperationTraceStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public OperationTraceExecution(OperationTraceStateEnum stateEnum, OperationTrace operationTrace) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.operationTrace = operationTrace;
	}

	// 查询 操作成功的时候使用的构造器
	public OperationTraceExecution(OperationTraceStateEnum stateEnum, List<OperationTrace> operationTraceList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.operationTraceList = operationTraceList;
	}

	
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public OperationTrace getOperationTrace() {
		return operationTrace;
	}

	public void setOperationTrace(OperationTrace operationTrace) {
		this.operationTrace = operationTrace;
	}

	public List<OperationTrace> getOperationTraceList() {
		return operationTraceList;
	}

	public void setOperationTraceList(List<OperationTrace> operationTraceList) {
		this.operationTraceList = operationTraceList;
	}



}
